package kg.aibek.preuler1;

public class Problem6 {
	public static void main(String[] args) {
		Long sosq = 0L;
		Long sqos = 0L;

		for (int i = 1; i <= 100; i++) {
			sosq += i * i;
			sqos += i;
		}
		sqos = sqos * sqos;

		System.out.println(sqos - sosq);
	}
}
